﻿using System;
using System.Collections.Generic;
using System.Text;

namespace iPdf
{

    class Publisher: Actor<ActionItem, PublisherOption>
    {
        protected override void Prepare()
        {
            pageOption.Service.Login(pageOption.Username, pageOption.Password);
        }

        protected override void Work()
        {
            Helper.VerifyFile(workItem.Source);

            pageOption.Service.Upload(workItem.Source);
        }
    }


}
